<?php

namespace Sharks\Core\Support\Smarty;

use Sharks\Core\AppContext;

class SmartyVariableProvider {

    public function handle($smarty) {
        $app = AppContext::instance();
        $set = array(
            "flash" => $app->flash(),
            "session" => $app->session(),
            "request" => $app->request(),
        );
        $smarty->assign($set);
        $smarty->force_compile = true;
    }

}